<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

	

<script>
jQuery(function(){
	//alert("${cookie.teamwork_toggle.value}");
     <c:if test="${cookie.teamwork_toggle.value=='hide'}">
      hideTogole();  //如果cookie记录是收缩状态或者是进入首页，都隐藏起来
     </c:if> 
});


function toggleMenu(){
  if(jQuery('#leftmenu').css('display')=='none')
	showTogole();
  else
	hideTogole();
}

function showTogole()
{
    jQuery('#leftmenu').show();
	jQuery('#togglebtn').attr("src","../../themes/${sessionScope.loginUser.theme}/skin/${sessionScope.loginUser.themePath}/images/toggle_bar_left.gif");
    Set_Cookie("teamwork_toggle", 'show', false, false, false, false);
}

function hideTogole()
{
    jQuery('#leftmenu').hide();
	jQuery('#togglebtn').attr("src","../../themes/${sessionScope.loginUser.theme}/skin/${sessionScope.loginUser.themePath}/images/toggle_bar_right.gif");
	Set_Cookie("teamwork_toggle", 'hide', false, false, false, false);
    
}
</script>
